package com.hk.control;

import com.hk.action.Action;
import com.hk.action.ActionFactory;
import com.hk.control.IndexAction;

public class IndexActionFactory implements ActionFactory{
	
	private static IndexActionFactory factory;
	
	public static IndexActionFactory getInstance(){
		if(factory==null){
			factory=new IndexActionFactory();
		}
		return factory;
	}
	
	
	
	
	
	public Action getAction(String command){
		Action action=null;
			if(command.equalsIgnoreCase("index")){
		
			action=new IndexAction();
		}
		
		return action;
	}//
}
